#include "DataStructure/Input/Element/CTETRAData.h"

using namespace SG::DataStructure;

/// @brief 判断两个CTETRAData是否相等
/// @param a
/// @param b
/// @return
bool SG::DataStructure::FEM::operator== (const CTETRAData& a, const CTETRAData& b)
{
    if (a.m_id != b.m_id)
    {
        return false;
    }
    if (a.m_pId != b.m_pId)
    {
        return false;
    }
    for (int i = 0; i < 10; ++i)
    {
        if (a.m_g[i] != b.m_g[i])
        {
            return false;
        }
    }
    if (a.m_domainId != b.m_domainId)
    {
        return false;  // NOLINT(readability-simplify-boolean-expr)
    }
    return true;
}